﻿#$ChartName,$ChartType,$XLabel,$YLabel,
function Add-Visifire($chartName,$xLabel,$yLabel,$hashSource)
{
    #           *****ChartConf*****************|*SeriesType*|*SeriesName*|*DataPointsName*|****Datapointsvalue****|\
    # structure=CharNameµAxisXLabelµAxisYLabelµ£SeriesType1µ£SeriesName1µ£DatapointsName1µ£DataPointSerie1Value1¤µ£§
    
    # Add Chart Configuration
    $data = "$ChartNameµ$XLabelµ$YLabelµ£"
      
    # Add Series Type
    $ashSource.get_Item("type")|%{$data += "$_µ"}
    $data += "£"
    
    # Add Series Name
    $hashSource.get-Item("SeriesName")|%{$data += "$_µ"}        
    $data += "£"
     
    # Add Datapoints Name    
    $hashSource.Get_Keys()|%{$data += "$_µ"}
    $data += "£"
    
    $hashsource.GetEnumerator()|%{
        
    
    $data += $_.key 
    }
        $data += "µ"
        return $data
}
    $data += "£§"
    $data
}

function TestHash($hashsources)
{
foreach ($hashsource in $hashsources)
{
$hashsource.GetEnumerator()|%{
$_.key;$_.value
}

}
}